// components/common/brand-store-item/index.js
import componentBehavior from '../../../behaviors/component';
import { COMPONENT_OPTIONS } from '../../../constants/common';

Component({
    behaviors: [componentBehavior],
    options: {
        ...COMPONENT_OPTIONS,
    },
    properties: {
        scene: {
            type: String,
            value: 'view', // view select open
        },
        type: {
            type: String,
            value: 'brand', // brand || store
        },
        checked: {
            type: Boolean,
            value: false,
        },
        info: {
            type: Object,
            value: null,
        },
    },
    methods: {
        handleClick() {
            const { info } = this.data;
            this.triggerEvent('click', info);
        },
    }
})
